package com.foreveross.bsl.mam.rbac.application.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * <BR>
 * [功能详细描述]
 * @author Amberlo
 * @version [mam-application , 2013-6-20] 
 */
@XmlRootElement(name = "roleVO")
@XmlAccessorType(XmlAccessType.FIELD)
public class RoleVO implements Serializable{
	/**  */
	private static final long serialVersionUID = 1L;

	/** 角色id */
	private String id;
	
	/** 是否有效 */
	private boolean available;
	
	/** 创建时间 */
	private Date create_time;
	
	/** 修改时间 */
	private Date modified_at;
	
	/** 角色名 */
	private String rolename;
	
	/** 角色中文名 */
	private String name;
	
	/** 角色类型  0为应用角色  1为用户组角色*/
	private Integer roleType;
	/** 角色种类*/
    public static class RoleType { 
    	public final static Integer APP = 0;
    	public final static Integer USERGROUP = 1;
    } 
	
	private List<PrivilegeVO> privileges;
	
	public boolean isAvailable() {
		return available;
	}

	public void setAvailable(boolean available) {
		this.available = available;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public Date getModified_at() {
		return modified_at;
	}

	public void setModified_at(Date modified_at) {
		this.modified_at = modified_at;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<PrivilegeVO> getPrivileges() {
		return privileges;
	}

	public void setPrivileges(List<PrivilegeVO> privileges) {
		this.privileges = privileges;
	}

	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public Integer getRoleType() {
		return roleType;
	}

	public void setRoleType(Integer roleType) {
		this.roleType = roleType;
	}


}
